Optimal. Leaf size=198 \[ -\frac {2 \sqrt {a+b} \cot (e+f x) \Pi \left (\frac {(a+b) c}{a (c+d)};\text {ArcSin}\left (\frac {\sqrt {c+d} \sqrt {a+b \sec (e+f x)}}{\sqrt {a+b} \sqrt {c+d \sec (e+f x)}}\right )|\frac {(a+b) (c-d)}{(a-b) (c+d)}\right ) \sqrt {\frac {(b c-a d) (1-\sec (e+f x))}{(a+b) (c+d \sec (e+f x))}} \sqrt {-\frac {(b c-a d) (1+\sec (e+f x))}{(a-b) (c+d \sec (e+f x))}} (c+d \sec (e+f x))}{a \sqrt {c+d} f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 198, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.034, Rules used = {4021}
\begin {gather*} -\frac {2 \sqrt {a+b} \cot (e+f x) (c+d \sec (e+f x)) \sqrt {\frac {(b c-a d) (1-\sec (e+f x))}{(a+b) (c+d \sec (e+f x))}} \sqrt {-\frac {(b c-a d) (\sec (e+f x)+1)}{(a-b) (c+d \sec (e+f x))}} \Pi \left (\frac {(a+b) c}{a (c+d)};\text {ArcSin}\left (\frac {\sqrt {c+d} \sqrt {a+b \sec (e+f x)}}{\sqrt {a+b} \sqrt {c+d \sec (e+f x)}}\right )|\frac {(a+b) (c-d)}{(a-b) (c+d)}\right )}{a f \sqrt {c+d}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 4021
Rubi steps
\begin {align*} \int \frac {\sqrt {c+d \sec (e+f x)}}{\sqrt {a+b \sec (e+f x)}} \, dx &=-\frac {2 \sqrt {a+b} \cot (e+f x) \Pi \left (\frac {(a+b) c}{a (c+d)};\sin ^{-1}\left (\frac {\sqrt {c+d} \sqrt {a+b \sec (e+f x)}}{\sqrt {a+b} \sqrt {c+d \sec (e+f x)}}\right )|\frac {(a+b) (c-d)}{(a-b) (c+d)}\right ) \sqrt {\frac {(b c-a d) (1-\sec (e+f x))}{(a+b) (c+d \sec (e+f x))}} \sqrt {-\frac {(b c-a d) (1+\sec (e+f x))}{(a-b) (c+d \sec (e+f x))}} (c+d \sec (e+f x))}{a \sqrt {c+d} f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 3.39, size = 325, normalized size = 1.64 \begin {gather*} \frac {4 \sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} (e+f x)\right )}{a-b}} \sqrt {\frac {(c+d) (b+a \cos (e+f x)) \csc ^2\left (\frac {1}{2} (e+f x)\right )}{b c-a d}} \csc (e+f x) \left (a (c+d) F\left (\text {ArcSin}\left (\sqrt {\frac {(c+d) (b+a \cos (e+f x)) \csc ^2\left (\frac {1}{2} (e+f x)\right )}{2 b c-2 a d}}\right )|\frac {2 (-b c+a d)}{(a-b) (c+d)}\right )-(a+b) c \Pi \left (\frac {-b c+a d}{a (c+d)};\text {ArcSin}\left (\sqrt {\frac {(c+d) (b+a \cos (e+f x)) \csc ^2\left (\frac {1}{2} (e+f x)\right )}{2 b c-2 a d}}\right )|\frac {2 (-b c+a d)}{(a-b) (c+d)}\right )\right ) \sqrt {c+d \sec (e+f x)} \sin ^2\left (\frac {1}{2} (e+f x)\right )}{a (c+d) f \sqrt {\frac {(a+b) (d+c \cos (e+f x)) \csc ^2\left (\frac {1}{2} (e+f x)\right )}{-b c+a d}} \sqrt {a+b \sec (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 2.74, size = 352, normalized size = 1.78
method | result | size |
default | \(\frac {2 \left (2 \EllipticPi \left (\frac {\left (-1+\cos \left (f x +e \right )\right ) \sqrt {\frac {a -b}{a +b}}}{\sin \left (f x +e \right )}, -\frac {a +b}{a -b}, \frac {\sqrt {\frac {c -d}{c +d}}}{\sqrt {\frac {a -b}{a +b}}}\right ) c -\EllipticF \left (\frac {\left (-1+\cos \left (f x +e \right )\right ) \sqrt {\frac {a -b}{a +b}}}{\sin \left (f x +e \right )}, \sqrt {\frac {\left (a +b \right ) \left (c -d \right )}{\left (a -b \right ) \left (c +d \right )}}\right ) c +\EllipticF \left (\frac {\left (-1+\cos \left (f x +e \right )\right ) \sqrt {\frac {a -b}{a +b}}}{\sin \left (f x +e \right )}, \sqrt {\frac {\left (a +b \right ) \left (c -d \right )}{\left (a -b \right ) \left (c +d \right )}}\right ) d \right ) \cos \left (f x +e \right ) \left (\sin ^{2}\left (f x +e \right )\right ) \sqrt {\frac {d +c \cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right ) \left (c +d \right )}}\, \sqrt {\frac {a \cos \left (f x +e \right )+b}{\left (\cos \left (f x +e \right )+1\right ) \left (a +b \right )}}\, \sqrt {\frac {d +c \cos \left (f x +e \right )}{\cos \left (f x +e \right )}}\, \sqrt {\frac {a \cos \left (f x +e \right )+b}{\cos \left (f x +e \right )}}}{f \left (-1+\cos \left (f x +e \right )\right ) \left (d +c \cos \left (f x +e \right )\right ) \left (a \cos \left (f x +e \right )+b \right ) \sqrt {\frac {a -b}{a +b}}}\) | \(352\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {c + d \sec {\left (e + f x \right )}}}{\sqrt {a + b \sec {\left (e + f x \right )}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {c+\frac {d}{\cos \left (e+f\,x\right )}}}{\sqrt {a+\frac {b}{\cos \left (e+f\,x\right )}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________